
<?php Configure::write('Page.script', 'atendimentos/index'); ?>
<h2>Gerenciamento dos Atendimentos</h2>
<?php echo $this->Html->link('Marcar atendimento','/Atendimentos/marcar', array('escape' => false)); ?>

<table id="tabela_id" width="100%">
    <thead>
        <th>Código</th>
        <th>Data</th>
        <th>Remetente</th>
        <th>Destino</th>
        <th>Valor</th>
    </thead>
    <?php foreach ($lista_atendimento as $l): ?>
    <tr>
        <td><?php echo $this->Html->link($l['Atendimento']['id'], array('action'=>'visualizar',$l['Atendimento']['id']))?></td>
        <td><?php echo $this->Time->format('d/m/Y H:i:s',$l['Atendimento']['created']) ?></td>
        <td><?php echo $l['Atendimento']['nm_responsavel_origem_entrega'] ?></td>
        <td><?php echo $l['Atendimento']['nm_cidade_destino_entrega'].'/'.$l['Atendimento']['nm_bairro_destino_entrega'] ?></td>
        <td><?php echo $l['Atendimento']['vl_frete'] ?></td>
    </tr>        
    <?php endforeach; ?>
</table>



    
<?php //echo $this->Html->link('Marcar atendimento', '/Atendimentos/marcar', array('escape' => false)); ?>
